<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!--String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";-->


<!DOCTYPE html>
<html lang="zh-cn">
  <head>
	  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	  <meta charset="utf-8">
	  <!-- Title and other stuffs -->
	  <title>Bootstrap响应式后台管理系统</title> 
	  <meta name="keywords" content="Bootstrap后台管理系统" />
	  <meta name="description" content="Bootstrap后台管理系统" />
	  <meta name="viewport" content="width=device-width, initial-scale=1.0">
	  <meta name="author" content="">
	 <jsp:include page="../bootstrap/top_css.jsp"></jsp:include>
	  
	  <link rel="shortcut icon" href="img/favicon/favicon.png">
  </head>
  
  <body>
<!-- top -->
	<jsp:include page="../bootstrap/top.jsp"></jsp:include>

<!-- Header starts -->
  <header>
	<jsp:include page="../bootstrap/top_header.jsp"></jsp:include>
  </header>
<!-- Header ends -->

<!-- Main content starts -->

<div class="content">

  	<!-- 左首页列表 -->
   <jsp:include page="../bootstrap/left.jsp"></jsp:include>

  	<!-- 大容器 -->
  	<div class="mainbar">
      
	    <!-- 首页标题 -->
	    <div class="page-head">
	      <h2 class="pull-left"><i class="icon-home"></i> 个人资料</h2>

        <!-- Breadcrumb -->
        <div class="bread-crumb pull-right">
          <a href="index.html"><i class="icon-home"></i> 首页</a> 
          <!-- Divider -->
          <span class="divider">/</span> 
          <a href="#" class="bread-current">个人资料</a>
        </div>
        
        <div class="clearfix"></div>

	    </div>

	    <!-- 正文 -->
		<table class="table table-bordered" cellSpacing="1" cellPadding="4" width="100%" border="0">
					<tr bgcolor="gray">
						<td colspan="2" class="tb_pink_border"><font style="color: white; font-size: 13px; font-weight: bold;">用户详情</font></td>
					</tr>
					<tr>
						<td class="tb_pink_border" align="center" width="50%">用户名:</td>
						<td class="tb_pink_border" align="center" width="50%">${user.userName }</td>
					</tr>
					<tr>
						<td class="tb_pink_border" align="center" width="50%">真实姓名:</td>
						<td class="tb_pink_border" align="center" width="50%">${user.name }</td>
					</tr>
					<tr>
						<td class="tb_pink_border" align="center" width="50%">所属部门:</td>
						<td class="tb_pink_border" align="center" width="50%">${user.dept.name }</td>
					</tr>
					<tr>
						<td class="tb_pink_border" align="center" width="50%">家庭住址:</td>
						<td class="tb_pink_border" align="center" width="50%">${user.address }</td>
					</tr>
					<tr>
						<td class="tb_pink_border" align="center" width="50%">邮箱:</td>
						<td class="tb_pink_border" align="center" width="50%">${user.email }</td>
					</tr>
					<tr>
						<td class="tb_pink_border" align="center" width="50%">联系方式:</td>
						<td class="tb_pink_border" align="center" width="50%">${user.tele }</td>
					</tr>
					<tr>
						<td class="tb_pink_border" align="center" width="50%">性别:</td>
						<td class="tb_pink_border" align="center" width="50%">
							<c:if test="${user.gender==1 }">男</c:if>
							<c:if test="${user.gender==0 }">女</c:if>
						</td>
					</tr>
					<tr>
						<td class="tb_pink_border" align="center" width="50%">出生日期:</td>
						<td class="tb_pink_border" style="padding-bottom: 5px;" align="center">
								<fmt:formatDate value="${user.birthday }" pattern="yyyy-MM-dd"/>
						</td>
					</tr>
					<tr>
						<td class="tb_pink_border" align="center" width="50%">登录时间:</td>
						<td class="tb_pink_border" style="padding-bottom: 5px;" align="center">
								<fmt:formatDate value="${user.loginTimes }" pattern="yyyy-MM-dd"/>
						</td>
					</tr>
					<tr>
						<td class="tb_pink_border" align="center" width="50%">登录主机IP:</td>
						<td class="tb_pink_border" align="center" width="50%">${user.lastLoginIp }</td>
					</tr>
				</table>
    </div>
    
</div>
   <!-- Mainbar ends -->
   <div class="clearfix"></div>


<!-- 脚部 -->
	<jsp:include page="../bootstrap/bottom.jsp"></jsp:include>

<!-- Scroll to top -->
<span class="totop"><a href="#"><i class="icon-chevron-up"></i></a></span> 

<!-- JS -->
	<jsp:include page="../bootstrap/bottom_JS.jsp"></jsp:include>
  </body>
</html>
